/**
 * 
 */
package demo;

import javax.faces.event.ActionEvent;

/**
 * @author Dreamer
 * 
 */
public class EchoBean {

	private String text;
	private String name;
	private String job;

	/**
	 * @param text
	 *            the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the job
	 */
	public String getJob() {
		return job;
	}

	/**
	 * @param job
	 *            the job to set
	 */
	public void setJob(String job) {
		this.job = job;
	}

	public void print(ActionEvent evt) {
		System.out.println("begin EchoBean.print");
		PrinterBean printer = new PrinterBean();
		printer.print(text);
		System.out.println("end EchoBean.print");
	}

	public String goTo() {
		System.out.println("begin EchoBean.goTo");
		return "index";
	}
}
